<?php

/*
	Class: Index

	About: Author
	J William McCarthy

	About: License
	<http://communit.as/docs/license>
*/
class IndexController extends App_Controller_Action_Abstract {

	/* Group: Instance Methods */

	/*
		Function: init
			Invoked automatically when an instance is created.
			Initializes the current instance.
			Also initializes the parent object (calls init() on the parent instance).
	*/
	function init(){
		parent::init();
	}

	/* Group: Actions */

	/*
		Function: index
			This is the web application homepage.

		Plugin Hooks:
			- *default_index_index* (filter) - No input params. Simply enables adding view variables via plugin.

		View Variables:
			$params - All params in the param arrays for filters get turned into view variables automatically.
	*/
	function indexAction(){
	    $additional = $this->_app_plugin->doFilter($this->_mca, array()); // FILTER HOOK
	    foreach($additional as $key => $value) {
	    	$this->view->$key = $value;
	    }
	}
	
}
